Jump to content

User:Galobtter/Shortdesc helper.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Don't install this. Instead directly use the gadget, as described at [[User:Galobtter/Shortdesc helper]]. */
mw.loader.using( 'user.options' ).then( function() {
	if ( mw.user.options.get( 'gadget-Shortdesc-helper' ) === null ) {
		new mw.Api().saveOption( 'gadget-Shortdesc-helper', '1' );
		mw.loader.load( [ 'ext.gadget.Shortdesc-helper' ] );
	}
} );